package ren.nearby.home.mvp;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import ren.nearby.bean.beans.LoginBean;
import ren.nearby.http.di.ActivityScoped;

/**
 * Created by Administrator on 2018/5/14 0014.
 */

@Module()
public abstract class FragmentMeModule {

    /**
     * 构建数据 使用注解  @Provides 标记方式 provideXXX 类为@Module
     */
    @Provides
    static LoginBean provideLoginBean() {
        return new LoginBean(" 帅气 ", true);
    }

    @ActivityScoped
    @Binds
    abstract FragmentContract.Action taskAction(FragmentActAction fragmentActAction);

    @ActivityScoped
    @Binds
    abstract RequestAPIContract.Action task2Action(RequestAPIAction apiAction);

}
